package com.guaika.reggie.service;

import com.guaika.reggie.common.ResultMessage;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * @program: reggie_project
 * @ClassName UploadService
 * @author: GuaiKa
 * @create: 2022-09-11 20:06
 **/
public interface UploadService {
    /***
     * 上传文件
     * @param file
     * @return
     */
    ResultMessage<String> upload(MultipartFile file);

    /***
     * 下载文件
     * @param name
     * @param response
     */
    void download(String name, HttpServletResponse response);
}
